package com.etime.perfectschool.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("SchoolFood")
public class SchoolFood {
    @TableId("foodId")
    private int foodId ;
    private String foodTitle;
    private String foodContent;
    private String foodPublishTime;
    private int foodUpvote;
    private int id;
    @TableField(exist = false)
    private List<FoodPhoto> foodPhotoList;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private List<FoodComments> foodCommentsList;
}
